package com.dabing.user.feignclient;

import org.springframework.stereotype.Component;

/**
 * @Author: dabing
 * @Date: 2021/11/16 20:26
 */
@Component  // 别忘了这个注解，还应该被扫描到
public class EmailFallBack implements  EmailFeignClient{

    @Override
    public boolean sendEmail(String email, String code) {
        //直接返回false
        System.out.println("...............................直接降级：直接返回false");
        return false;
    }
}
